#include <rtthread.h>
#include <finsh.h>
#include <threadunit/SDRAMDEF.h>

void sdramTest()
{
    unsigned short int data = 0;

    for (int j = 0; j < 10; j++)
        write_sdram(j, 120 + j);
    for (int j = 0; j < 10; j++)
    {
        data = read_sdram(j);
        rt_kprintf("data : %d\n", data);
    }
}
MSH_CMD_EXPORT(sdramTest, test SDRAM); // 该接口可以将自定义命令导出到C-Style模式。
